package ooday02work;

public class AnimalTest {
    public static void main(String[] args) {
        Dog d = new Dog("小黑", 2,"白");
        d.drink();
        d.eat();
        d.lookHome();

        Fish f = new Fish("小金",1,"白");
        f.eat();
        f.drink();

        Chick c = new Chick("小黄" , 2 ,"黄");
        c.eat();
        c.drink();
        c.layEggs();

    }
}
